The CLI Book: Writing successful Command Line Clients with Node.js by Robert Kowalski

The CLI Book: Writing successful Command Line Clients with Node.js by Robert Kowalski

Author:Robert Kowalski
Language: eng
Format: mobi, epub
Publisher: Robert Kowalski
Published: 2016-04-14T21:00:00+00:00


Right now we just want to create man-pages from our documents in the api and cli folder.

Based on these building blocks we can create the final function buildMan that will finally build our man-pages. It will make use of the functions we just created and additionally spawn a child process which compiles the markdown files using marked-man. We will use the function spawnSync from Node core to spawn the processes. As we write the result to the filesystem, we have to require the fs module, too:

const fs = require('fs'); const spawnSync = require('child_process').spawnSync;



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.